//
//  YWKeepWatchMission.h
//  maintain
//
//  Created by 郑想 on 16/2/19.
//  Copyright © 2016年 ewin. All rights reserved.
//

#import "YWHandler.h"
#import "YWLocation.h"
#import <Foundation/Foundation.h>

@class YWShortBuilding;

@interface YWPatrolLineLocationRel : NSObject
/**路线ID*/
@property (nonatomic, assign) NSInteger patrolLineId;
/**位置排序数字*/
@property (nonatomic, assign) NSInteger sort;
/**位置Id*/
@property (nonatomic, assign) NSInteger locationId;
/**位置对象*/
@property (nonatomic, strong) YWLocation* location;
/**线路要求*/
@property (nonatomic, copy) NSString *note;
@end

@interface YWPatrolLineWeekRel : NSObject
/**路线ID*/
@property (nonatomic, assign) NSInteger patrolLineId;
/**星期几	0：周天，1-6：周一至周六*/
@property (nonatomic, assign) NSInteger week;
@end

@interface YWPatrolLine : NSObject
/**路线ID*/
@property (nonatomic, assign) NSInteger patrolLineId;
/**路线名称*/
@property (nonatomic, copy) NSString* patrolLineName;
/**每天间隔时间*/
@property (nonatomic, assign) NSInteger intervalMinute;
/**线路创建者*/
@property (nonatomic, strong) YWHandler* creator;
/**路线创建时间*/
@property (nonatomic, assign) NSTimeInterval createTime;
/**路线更新或者叫修改时间*/
@property (nonatomic, assign) NSTimeInterval updateTime;
/**巡更位置点*/
@property (nonatomic, strong) NSArray* locationRels;
/**巡更每周循环天*/
@property (nonatomic, strong) NSArray* weekRels;
/**线路要求*/
@property (nonatomic, copy) NSString *note;
@end

@interface YWKeepWatchMission : NSObject
/**任务ID*/
@property (nonatomic, assign) NSInteger keepWatchMissionId;
/**楼盘ID*/
@property (nonatomic, copy) NSString *buildingId;
/**楼盘对象*/
@property (nonatomic, strong) YWShortBuilding *building;
/**任务编号*/
@property (nonatomic, copy) NSString *missionSequence;
/**任务制定时间*/
@property (nonatomic, assign) NSTimeInterval createTime;
/**任务状态	0：正常，-1：删除,-2 : 在8.16接口返回的不完整的任务*/
@property (nonatomic, assign) NSInteger status;
/**巡更路线*/
@property (nonatomic, strong) YWPatrolLine* patrolLine;
/**巡更人*/
@property (nonatomic, strong) NSArray* executors;
/**任务开始日期*/
@property (nonatomic, assign) NSTimeInterval startDate;
/**任务截止日期*/
@property (nonatomic, assign) NSTimeInterval endDate;
/**任务开始时间*/
@property (nonatomic, copy) NSString *startTime;
/**任务结束时间*/
@property (nonatomic, copy) NSString *endTime;
/**任务创建者*/
@property (nonatomic, strong) YWHandler* creator;
/**@的人集合*/
@property (nonatomic, strong) NSArray *observers;
/**@的人的id串*/
@property (nonatomic, copy) NSString *observerIds;

/**当前巡更时间区段，不解析(用于cell，取数据时获取，避免cell显示时费时操作)*/
@property (nonatomic, strong) NSArray *currentLooperTimeArray;
@end

@interface YWPatrolLineOption : NSObject
/**线路ID*/
@property (nonatomic, assign) NSInteger patrolLineId;
/**线路名称*/
@property (nonatomic, copy) NSString *patrolLineName;
@end
